import request from '@/utils/request'

// OneSelect
export function getOneSelectList(searchData) {
  return request({
    url: '/oneSelect/list',
    method: 'post',
    data: searchData
  });
}

export function deleteOneSelect(id) {
  return request({
    url: '/oneSelect/delete',
    method: 'get',
    params: {"id": id}
  });
}

// ManySelect
export function getManySelectList(searchData) {
  return request({
    url: '/manySelect/list',
    method: 'post',
    data: searchData
  });
}

export function deleteManySelect(id) {
  return request({
    url: '/manySelect/delete',
    method: 'get',
    params: {"id": id}
  });
}

// Judge
export function getJudgeList(searchData) {
  return request({
    url: '/judge/list',
    method: 'post',
    data: searchData
  });
}

export function deleteJudge(id) {
  return request({
    url: '/judge/delete',
    method: 'get',
    params: {"id": id}
  });
}

// Completion
export function getCompletionList(searchData) {
  return request({
    url: '/completion/list',
    method: 'post',
    data: searchData
  });
}

export function deleteCompletion(id) {
  return request({
    url: '/completion/delete',
    method: 'get',
    params: {"id": id}
  });
}

// ShortAnswer
export function getShortAnswerList(searchData) {
  return request({
    url: '/shortAnswer/list',
    method: 'post',
    data: searchData
  });
}

export function deleteShortAnswer(id) {
  return request({
    url: '/shortAnswer/delete',
    method: 'get',
    params: {"id": id}
  });
}








